package pl.edu.agh.inpema.core.environment;

import java.util.List;

import pl.edu.agh.inpema.core.dataBase.DataBase;
import pl.edu.agh.inpema.core.dataBase.DataBaseFactory;

public class EnvironmentExplorer {
	
	private DataBase dataBase;
	
	public EnvironmentExplorer() {
		
	}
	
	public void startConection() {
		this.dataBase = DataBaseFactory.getDataBase();
	}

	public List<EnvironmentInfo> getAllEnvironmentsInfo() {
		return this.dataBase.getAllEnvironmentInfo();		
	}
	
	public void closeConnection() {
		this.dataBase.closeConnection();
	}
	
}
